/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.yuecai.modules.yc_user.service.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.time.Instant;

/**
* @website https://el-admin.vip
* @description /
* @author dm
* @date 2020-06-22
**/
@Data
public class YcUserDto implements Serializable {

    private Long id;

    /** 用户名 */
    private String username;

    /** 密码 */
    @JsonIgnore
    private String password;

    /** 手机号 */
    private String phone;

    /** 头像地址 */
    private String imgUrl;

    /** 推荐人Id */
    private Long pid;

    /** 0正常1删除2冻结 */
    private Integer state;

    /** 创建时间 */
    private Instant createTime;

    /** 修改时间 */
    private Instant lastUpdateTime;

    /** 昵称 */
    private String nickName;

    /** 0女1男 */
    private Boolean sex;

    /** 生日 */
    private Instant birthday;

    /** 城市 */
    private String city;

    /** 职业 */
    private String occupation;

    /** 个签 */
    private String sign;

    /** 上次登陆时间 */
    private Instant lastLoginTime;

    /** 用户等级 type为1的时候有值 1普通用户、2会员用户 */
    private Integer level;

    /** 1店铺用户、2司机、3业务员 */
    private Integer type;

    /** 是否实名，1实名了，0未实名 */
    private boolean realName;

    /** 推荐码**/
    private String referralCode;
}